package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.PhotoGallery;
import com.weixing.mall.provider.model.dto.PhotoChgDto;
import com.weixing.mall.provider.model.query.PhotoGalleryQuery;
import com.weixing.mall.provider.model.vo.PhotoGalleryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品模块-图片库表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
public interface PhotoGalleryMapper extends BaseMapper<PhotoGallery> {

    /**
     * @Description 条件查询 <br/>
     * @author gjq
     * @date 2019/8/9 14:55
     * @param photoGalleryQuery
     * @return java.util.List<com.weixing.mall.provider.model.vo.PhotoGalleryVo>
     */
    IPage<PhotoGalleryVo> selectList(@Param("pg") Page page, @Param("qs")PhotoGalleryQuery photoGalleryQuery);

    List<PhotoGalleryVo> selectList(@Param("qs")PhotoGalleryQuery photoGalleryQuery);
    /**
     * @Description 转移相册 <br/>
     * @author gjq
     * @date 2019/8/9 15:32
     * @param photoChgDto
     * @return int
     */
    int updatePhoto(@Param("qs")PhotoChgDto photoChgDto);
}
